Package edu.uky.ai.tic
Class Game
java.lang.Object
edu.uky.ai.tic.Game
public class Game
extends java.lang.Object
Plays a game of Tic Tac Toe and measures how many moves each player
considers during the game.
- Author:
- Stephen G. Ware
-
Field Summary
Fields Modifier and Type Field Description BotoThe O playerdoubleoWorkThe number of moves considered by player O during the gameStatestateThe final state of the game after it is overPlayerwinnerThe winning playerBotxTHe X playerdoublexWorkThe number of moves considered by player X during the game -
Constructor Summary
-
Method Summary
-
Field Details
-
Constructor Details
-
Game
Constructs and plays a game of Tic Tac Toe.- Parameters:
x- the X playero- the O player
-